package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author hyy
 * @version 1.0
 * @description: 仓库模型
 * @date 2024/10/11 14:53
 */
@Data
public class WhWarehouse {
    //仓库ID
    @TableId(type = IdType.AUTO)
    private Integer warehouseId;
    //仓库名称
    private String warehouseName;
    //仓库地址
    private String warehouseLocation;
    //仓库负责人ID
    private Integer warehouseResponsible;
    //仓库负责人姓名
    @TableField(exist = false)
    private String warehouseResponsPerson;

    public WhWarehouse(String warehouseName, String warehouseLocation, Integer warehouseResponsible) {
        this.warehouseName = warehouseName;
        this.warehouseLocation = warehouseLocation;
        this.warehouseResponsible = warehouseResponsible;
    }

    public WhWarehouse(Integer warehouseId, String warehouseName, String warehouseLocation, Integer warehouseResponsible) {
        this.warehouseId = warehouseId;
        this.warehouseName = warehouseName;
        this.warehouseLocation = warehouseLocation;
        this.warehouseResponsible = warehouseResponsible;
    }

    public WhWarehouse() {
    }

}
